<?php
/**
 * Created by clz.
 * User: clz
 * Date: 2018/7/12
 * Time: 22:59
 */

class Index
{
    /**
     * @api {get} /user/:id Test
     * @apiName test
     * @apiGroup User
     *
     * @apiParam {Number} id Users unique ID.
     *
     * @apiSuccess {String} firstname Firstname of the User.
     * @apiSuccess {String} lastname  Lastname of the User.
     */
    public function test(){
        Db::first();
        //echo 'sfsdfsd';
    }
    /**
     * @api {get} /user/:id1 Test1
     * @apiName test1
     * @apiGroup User
     *
     * @apiParam {Number} id Users unique ID.
     *
     * @apiSuccess {String} firstname Firstname of the User.
     * @apiSuccess {String} lastname  Lastname of the User.
     */
    public function test1(){
        echo 'sfsdfsd';
    }
    /**
     * @api {get} /user/:id2 Test2
     * @apiName test2
     * @apiGroup User
     *
     * @apiParam {Number} id Users unique ID.
     *
     * @apiSuccess {String} firstname Firstname of the User.
     * @apiSuccess {String} lastname  Lastname of the User.
     */
    public function test3(){
        echo 'sfsdfsd';
    }

}

$a = new Index();
$a->test();